package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销业务办理对象 marketing_business
 * 
 * @author Alex
 * @date 2025-07-16
 */
@Data
public class MarketingBusiness extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 业务ID */
    private Long id;

    /** 住户ID（关联resident_info表） */
    @Excel(name = "住户ID", readConverterExp = "关=联resident_info表")
    private Long residentId;

    /** 所属部门ID（包区） */
    @Excel(name = "所属部门ID", readConverterExp = "包=区")
    private Long deptId;

    /** 营销人员ID */
    @Excel(name = "营销人员ID")
    private Long marketingUserId;

    /** 套餐类型：value_points-价值积分,mobile-移动,broadband-宽带,high_value_fusion-高值融合,fttr-FTTR,video_network-视联网 */
    @Excel(name = "套餐类型：value_points-价值积分,mobile-移动,broadband-宽带,high_value_fusion-高值融合,fttr-FTTR,video_network-视联网")
    private Long packageType;

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    private Long packageName;

    /** 套餐价格 */
    @Excel(name = "套餐价格")
    private BigDecimal packagePrice;

    /** 业务类型：1-新装，2-续费，3-升级 */
    @Excel(name = "业务类型：1-新装，2-续费，3-升级")
    private Integer businessType;

    /** 办理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "办理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date businessDate;

    /** 预期收入 */
    @Excel(name = "预期收入")
    private BigDecimal expectedIncome;

    /** 实际收入 */
    @Excel(name = "实际收入")
    private BigDecimal actualIncome;

    /** 是否草稿：0-否，1-是 */
    @Excel(name = "是否草稿：0-否，1-是")
    private Integer isDraft;

    /** 审核状态：0-待审核，1-审核通过，2-审核驳回 */
    @Excel(name = "审核状态：0-待审核，1-审核通过，2-审核驳回")
    private Integer auditStatus;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long auditUserId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核备注 */
    @Excel(name = "审核备注")
    private String auditRemark;

    /** 是否计入业绩：0-否，1-是 */
    @Excel(name = "是否计入业绩：0-否，1-是")
    private Integer performanceIncluded;

    /** 生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveDate;

    /** 到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireDate;

    /** 相关照片（JSON格式） */
    @Excel(name = "相关照片", readConverterExp = "J=SON格式")
    private String photos;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 状态：1-正常，0-删除 */
    @Excel(name = "状态：1-正常，0-删除")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setResidentId(Long residentId) 
    {
        this.residentId = residentId;
    }

    public Long getResidentId() 
    {
        return residentId;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setMarketingUserId(Long marketingUserId) 
    {
        this.marketingUserId = marketingUserId;
    }

    public Long getMarketingUserId() 
    {
        return marketingUserId;
    }

    public void setPackageType(Long packageType) 
    {
        this.packageType = packageType;
    }

    public Long getPackageType() 
    {
        return packageType;
    }

    public void setPackageName(Long packageName) 
    {
        this.packageName = packageName;
    }

    public Long getPackageName() 
    {
        return packageName;
    }

    public void setPackagePrice(BigDecimal packagePrice) 
    {
        this.packagePrice = packagePrice;
    }

    public BigDecimal getPackagePrice() 
    {
        return packagePrice;
    }

    public void setBusinessType(Integer businessType) 
    {
        this.businessType = businessType;
    }

    public Integer getBusinessType() 
    {
        return businessType;
    }

    public void setBusinessDate(Date businessDate) 
    {
        this.businessDate = businessDate;
    }

    public Date getBusinessDate() 
    {
        return businessDate;
    }

    public void setExpectedIncome(BigDecimal expectedIncome) 
    {
        this.expectedIncome = expectedIncome;
    }

    public BigDecimal getExpectedIncome() 
    {
        return expectedIncome;
    }

    public void setActualIncome(BigDecimal actualIncome) 
    {
        this.actualIncome = actualIncome;
    }

    public BigDecimal getActualIncome() 
    {
        return actualIncome;
    }

    public void setIsDraft(Integer isDraft) 
    {
        this.isDraft = isDraft;
    }

    public Integer getIsDraft() 
    {
        return isDraft;
    }

    public void setAuditStatus(Integer auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditStatus() 
    {
        return auditStatus;
    }

    public void setAuditUserId(Long auditUserId) 
    {
        this.auditUserId = auditUserId;
    }

    public Long getAuditUserId() 
    {
        return auditUserId;
    }

    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }

    public void setAuditRemark(String auditRemark) 
    {
        this.auditRemark = auditRemark;
    }

    public String getAuditRemark() 
    {
        return auditRemark;
    }

    public void setPerformanceIncluded(Integer performanceIncluded) 
    {
        this.performanceIncluded = performanceIncluded;
    }

    public Integer getPerformanceIncluded() 
    {
        return performanceIncluded;
    }

    public void setEffectiveDate(Date effectiveDate) 
    {
        this.effectiveDate = effectiveDate;
    }

    public Date getEffectiveDate() 
    {
        return effectiveDate;
    }

    public void setExpireDate(Date expireDate) 
    {
        this.expireDate = expireDate;
    }

    public Date getExpireDate() 
    {
        return expireDate;
    }

    public void setPhotos(String photos) 
    {
        this.photos = photos;
    }

    public String getPhotos() 
    {
        return photos;
    }

    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("residentId", getResidentId())
            .append("deptId", getDeptId())
            .append("marketingUserId", getMarketingUserId())
            .append("packageType", getPackageType())
            .append("packageName", getPackageName())
            .append("packagePrice", getPackagePrice())
            .append("businessType", getBusinessType())
            .append("businessDate", getBusinessDate())
            .append("expectedIncome", getExpectedIncome())
            .append("actualIncome", getActualIncome())
            .append("isDraft", getIsDraft())
            .append("auditStatus", getAuditStatus())
            .append("auditUserId", getAuditUserId())
            .append("auditTime", getAuditTime())
            .append("auditRemark", getAuditRemark())
            .append("performanceIncluded", getPerformanceIncluded())
            .append("effectiveDate", getEffectiveDate())
            .append("expireDate", getExpireDate())
            .append("photos", getPhotos())
            .append("remarks", getRemarks())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
